package com.annhoa.util.tag.freemarker;

import javax.annotation.PostConstruct;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import freemarker.template.Configuration;

@Component
public class FreemarkerConfig {
	
	@Autowired
	private Configuration configuration;
	@Autowired
	UserDirectiveTag userDirectiveTag;
	
	@PostConstruct
	public void setSharedVariable(){
		configuration.setSharedVariable("usertag",userDirectiveTag);
	}
}
